const format = (value) => {
    let formattedValue = value || ""
    const methods = {
      CN: () => {
        formattedValue = formattedValue.replace(/[\u4e00-\u9fa5]/g, "")
        return methods
      },
      EN: () => {
        formattedValue = formattedValue.replace(/[a-zA-Z]/g, "")
        return methods
      },
      SB: () => {
        formattedValue = formattedValue.replace(/[^\w\s]/g, "")
        return methods
      },
      SQL: () => {
        formattedValue = formattedValue.replace(/[%&'":*<>?/\\|{}~`]/g, "")
        return methods
      },
      getValue: () => formattedValue,
    };
    return methods;
  }
  
  export { format }